package cn.lbf.stuniversity.equipment.dao;

import cn.lbf.stuniversity.equipment.entity.Equipment;
import cn.lbf.stuniversity.equipment.form.EquipmentAddForm;
import cn.lbf.stuniversity.equipment.form.EquipmentDetailForm;
import cn.lbf.stuniversity.equipment.form.EquipmentForm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface EquipmentDao {
    public int selectEquipmentCountByIdAndName(Map<String, Object> map);
    public Equipment selectById(String equipmentId);
    public List<Equipment> selectEquipmentByIdAndName(EquipmentForm form);
    public long queryCount(EquipmentForm form);
    public int updateByEquipmentId(EquipmentDetailForm form);
    public int addNew(EquipmentAddForm form);
    public int deleteByUpdateId(String equipmentId);
}
